home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1989 …il & Dave's Excellent CD / Excellent CD HFS.raw / Moof / Goodies / MPW Goodies / Interfaces / AIncludes / ROMEqu.a < prev    next >
Encoding:
Text File  |  1988-11-30  |  5.2 KB  |  151 lines  |  [TEXT/MPS ]

  1. ; Version: 1.04
  2. ; Created: Tuesday, August 2, 1988 at 9:47:59 PM
  3. ;
  4. ; File: ROMEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1986-1988
  8. ; All Rights Reserved
  9. ;
  10. ; Description : This file contains the CONST definitions used by the
  11. ; Slot Manager and Declaration ROM's
  12. ;
  13. ;------------------------------------------------------------------------
  14.  
  15.  
  16. ;*********************************************************************
  17. ; Constants
  18. ;*********************************************************************
  19.  
  20. ;=====================================================================
  21. ;Misc.
  22. ;=====================================================================
  23. defaultTO        EQU         100
  24. ;=====================================================================
  25. ;Format-Header
  26. ;=====================================================================
  27. appleFormat     EQU         1                        ;Format of Declaration Data (IEEE will assign real value)
  28. romRevision     EQU         1                        ;First ROM revision.
  29. romRevRange     EQU         9                        ;Revision of Declaration Data Format [1..9]
  30. testPattern     EQU         $5A932BC7                ;FHeader long word test pattern
  31. ;=====================================================================
  32. ;sExec constants
  33. ;=====================================================================
  34. sExec2            EQU         2                        ;Revision of header {For sExec}.
  35. ;=====================================================================
  36. ;sExec constants
  37. ;=====================================================================
  38. sCPU68000        EQU         1                        ;CPU type = 68000
  39. sCPU68020        EQU         2                        ;CPU type = 68020
  40.  
  41. ;=====================================================================
  42. ;sDRVR directory constants
  43. ;=====================================================================
  44. sMacOS68000     EQU         1                        ;Mac OS, CPU type = 68000
  45. sMacOS68020     EQU         2                        ;Mac OS, CPU type = 68020
  46.  
  47.  
  48. ;=====================================================================
  49. ;sResource types
  50. ;=====================================================================
  51. ;<Category>
  52. catBoard        EQU         1
  53. catTest         EQU         2
  54. catDisplay        EQU         3
  55. catNetwork        EQU         4
  56.  
  57. ;<Type>
  58. typBoard        EQU         0
  59. typApple        EQU         1
  60. typVideo        EQU         1
  61. typEtherNet     EQU         1
  62.  
  63. ;Driver Interface : <id.SW>
  64. drSwApple        EQU         1
  65.  
  66. ;Driver Interface : <id.SW><id.WH>
  67. drHwTFB         EQU         1
  68. drHw3Com        EQU         1
  69. drHwBSC         EQU         3
  70.  
  71.  
  72.  
  73. ;=====================================================================
  74. ;Declaration ROM Id's
  75. ;=====================================================================
  76. ;---------------------------------------------------------------------
  77. ; Misc
  78. ;---------------------------------------------------------------------
  79. endOfList        EQU         255                     ;End of list
  80.  
  81.  
  82. ;---------------------------------------------------------------------
  83. ; sResource List. Category: All
  84. ;---------------------------------------------------------------------
  85. ;The following Id's are common to all sResources.
  86. sRsrcType        EQU         1                        ;Type of sResource
  87. sRsrcName        EQU         2                        ;Name of sResource
  88. sRsrcIcon        EQU         3                        ;Icon
  89. sRsrcDrvrDir    EQU         4                        ;Driver directory
  90. sRsrcLoadRec    EQU         5                        ;Load record
  91. sRsrcBootRec    EQU         6                        ;sBoot record
  92. sRsrcFlags        EQU         7                        ;sResource Flags
  93. sRsrcHWDevId    EQU         8                        ;Hardware Device Id
  94. minorBaseOS     EQU         10                        ;Offset to base of sResource in minor space.
  95. minorLength     EQU         11
  96. majorBaseOS     EQU         12                        ;Offset to base of sResource in Major space
  97. majorLength     EQU         13
  98.  
  99. ;---------------------------------------------------------------------
  100. ; sResource List. Category: Board
  101. ;---------------------------------------------------------------------
  102. ;The following Id's are common to all Board sResources.
  103. boardId         EQU         32                        ;Board Id
  104. pRAMInitData    EQU         33                        ;sPRAM init data
  105. primaryInit     EQU         34                        ;Primary init record
  106. timeOutConst    EQU         35                        ;Time Out constant. 
  107. vendorInfo        EQU         36                        ;Vendor information List {See Vendor List, below}
  108. boardFlags        EQU         37                        ;Board Flags
  109.  
  110. ;---------------------------------------------------------------------
  111. ;Vendor List
  112. ;---------------------------------------------------------------------
  113. ;The following Id's are associated with the VendorInfo id
  114. vendorId        EQU         1                        ;Vendor Id
  115. serialNum        EQU         2                        ;Serial number
  116. revLevel        EQU         3                        ;Revision level
  117. partNum         EQU         4                        ;Part number
  118. date            EQU         5                        ; Last revision date of the card
  119.  
  120.  
  121. ;---------------------------------------------------------------------
  122. ; sResource List. Category_Type: Test_One
  123. ;---------------------------------------------------------------------
  124. ;The following Id's are common to all Test_One_x sResources.
  125. testByte        EQU         32                        ;Test byte.
  126. testWord        EQU         33                        ;Test Word.
  127. testLong        EQU         34                        ;Test Long.
  128. testString        EQU         35                        ;Test String.
  129.  
  130.  
  131.  
  132. ;*************************************************************
  133. ;Macros
  134. ;*************************************************************
  135. ;=============================================================
  136. ; Offset List Entry
  137. ;=============================================================
  138.                 MACRO
  139.                 OSLstEntry    &Id,&Offset
  140.                 DC.L        (&Id<<24)+&Offset-*
  141.                 ENDM
  142.  
  143.  
  144. ;=============================================================
  145. ; Data List Entry
  146. ;=============================================================
  147.                 MACRO
  148.                 DatLstEntry &Id,&Data
  149.                 DC.L        (&Id<<24)+&Data
  150.                 ENDM
  151.